home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / daemons / nfs / nfs-serv.2be / nfs-serv / nfs-server-2.2beta16 / mountd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-18  |  1.4 KB  |  58 lines

  1. /*
  2.  * mountd.h    This program implements a user-space NFS server.
  3.  *
  4.  * Authors:    Mark A. Shand, May 1988
  5.  *        Rick Sladkey, <jrs@world.std.com>
  6.  *        Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  7.  *
  8.  *        Copyright 1988 Mark A. Shand
  9.  *        This software maybe be used for any purpose provided
  10.  *        the above copyright notice is retained.  It is supplied
  11.  *        as is, with no warranty expressed or implied.
  12.  */
  13.  
  14. #ifndef MOUNTD_H
  15. #define MOUNTD_H
  16.  
  17. #include "system.h"
  18. #include "mount.h"
  19. #include "nfs_prot.h"
  20.  
  21. union argument_types {
  22.     dirpath            dirpath;
  23. };
  24.  
  25. union result_types {
  26.     fhstatus        fstatus;
  27.     mountlist        mountlist;
  28.     exports            exports;
  29. };
  30.  
  31. /* Global variables. */
  32. extern union argument_types    argument;
  33. extern union result_types    result;
  34. extern int            need_reinit;
  35. extern int            need_flush;
  36.  
  37. /* Include the other module definitions. */
  38. #include "auth.h"
  39. #include "fh.h"
  40. #include "logging.h"
  41.  
  42. /* Global Function prototypes. */
  43. extern _PRO( void mount_dispatch, (struct svc_req *, SVCXPRT *)        );
  44. extern _PRO( RETSIGTYPE reinitialize, (int sig)                );
  45.  
  46. #ifndef HAVE_RPCGEN_C
  47. #define mountproc_null_1_svc        mountproc_null_1
  48. #define mountproc_mnt_1_svc        mountproc_mnt_1
  49. #define mountproc_dump_1_svc        mountproc_dump_1
  50. #define mountproc_umnt_1_svc        mountproc_umnt_1
  51. #define mountproc_umntall_1_svc        mountproc_umntall_1
  52. #define mountproc_export_1_svc        mountproc_export_1
  53. #define mountproc_exportall_1_svc    mountproc_exportall_1
  54. #endif
  55.  
  56. /* End of mountd.h. */
  57. #endif /* MOUNTD_H */
  58.